package com.sensePlusVR.bean;

import android.os.Parcel;
import android.os.Parcelable;

public class BuriedPointPlayData implements Parcelable{
	
	private int game_id;
	
	private String title;
	
	private String actors;
	
	private String format;

	private String tags;
	
	private String play_mode;
	
	private String version;
	
	private String type;
	
	private String grade;
	
	private String company;
	
	private String area;
	
	private int isfree;
	
	private float rating;
	
	private String level;
	
	private String directors;
	
	//11/29添加字段
	//蓝牙设备id
	private int device_id;
	//蓝牙设备mac
	private String device_mac;
	//蓝牙设备版本(可以用来区分手环还是飞机杯)
	private int device_version;
	//是否为vr用户(0 非，1 是)
	private int vr;
	
	//VR,2D中分别有Game和Video模式
	private String play_resource;
	
	
	public BuriedPointPlayData() {

	}

	public BuriedPointPlayData(Parcel in) {
		game_id = in.readInt();
		title = in.readString();
		actors = in.readString();
		format = in.readString();
		tags = in.readString();
		play_mode = in.readString();
		version = in.readString();
		type = in.readString();
		grade = in.readString();
		company = in.readString();
		area = in.readString();
		isfree = in.readInt();
		rating = in.readFloat();
		level = in.readString();
		directors = in.readString();
		device_id = in.readInt();
		device_mac = in.readString();
		device_version = in.readInt();
		vr = in.readInt();
		play_resource = in.readString();

	}

	public int getGame_id() {
		return game_id;
	}

	public void setGame_id(int game_id) {
		this.game_id = game_id;
	}

	public String getPlay_mode() {
		return play_mode;
	}

	public void setPlay_mode(String play_mode) {
		this.play_mode = play_mode;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getActors() {
		return actors;
	}

	public void setActors(String actors) {
		this.actors = actors;
	}

	public String getFormat() {
		return format;
	}

	public void setFormat(String format) {
		this.format = format;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getGrade() {
		return grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public int getIsfree() {
		return isfree;
	}

	public void setIsfree(int isfree) {
		this.isfree = isfree;
	}

	public float getRating() {
		return rating;
	}

	public void setRating(float rating) {
		this.rating = rating;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getDirectors() {
		return directors;
	}

	public void setDirectors(String directors) {
		this.directors = directors;
	}
	
	public int getDevice_id() {
		return device_id;
	}

	public void setDevice_id(int device_id) {
		this.device_id = device_id;
	}

	public String getDevice_mac() {
		return device_mac;
	}

	public void setDevice_mac(String device_mac) {
		this.device_mac = device_mac;
	}

	public int getDevice_version() {
		return device_version;
	}

	public void setDevice_version(int device_version) {
		this.device_version = device_version;
	}

	public int getVr() {
		return vr;
	}

	public void setVr(int vr) {
		this.vr = vr;
	}
	

	public String getPlay_resource() {
		return play_resource;
	}

	public void setPlay_resource(String play_resource) {
		this.play_resource = play_resource;
	}

	@Override
	public String toString() {
		return "BuriedPointPlayData [game_id=" + game_id + ", title=" + title
				+ ", actors=" + actors + ", format=" + format + ", tags="
				+ tags + ", play_mode=" + play_mode + ", version=" + version
				+ ", type=" + type + ", grade=" + grade + ", company="
				+ company + ", area=" + area + ", isfree=" + isfree
				+ ", rating=" + rating + ", level=" + level + ", directors="
				+ directors + ", device_id=" + device_id + ", device_mac="
				+ device_mac + ", device_version=" + device_version + ", vr="
				+ vr + ", play_resource=" + play_resource + "]";
	}

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel out, int flags) {
		out.writeInt(game_id);
		out.writeString(title);
		out.writeString(actors);
		out.writeString(format);
		out.writeString(tags);
		out.writeString(play_mode);
		out.writeString(version);
		out.writeString(type);
		out.writeString(grade);
		out.writeString(company);
		out.writeString(area);
		out.writeInt(isfree);
		out.writeFloat(rating);
		out.writeString(level);
		out.writeString(directors);
		out.writeInt(device_id);
		out.writeString(device_mac);
		out.writeInt(device_version);
		out.writeInt(vr);
		out.writeString(play_resource);
		
	}
	
	public static final Parcelable.Creator<BuriedPointPlayData> CREATOR = new Creator<BuriedPointPlayData>() {

		@Override
		public BuriedPointPlayData[] newArray(int size) {
			// TODO Auto-generated method stub
			return new BuriedPointPlayData[size];
		}

		@Override
		public BuriedPointPlayData createFromParcel(Parcel in) {
			// TODO Auto-generated method stub
			return new BuriedPointPlayData(in);
		}
	};

	
}
